<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>016-2D变换_translate缩放</title>
		<style>
			.outer {
				width: 200px;
				height: 200px;
				border: 2px solid black;
				margin: 100px auto;
			}

			.inner {
				width: 200px;
				height: 200px;
				background-color: skyblue;
				/* 浏览器字体默认大小为16px，最小能设置的字体大小为12px，我们可以通过 scale 属性将文字设置为比12px小的字体 */
				transform: scale(0.9);
			}

			span {
				display: inline-block;
				font-size: 20px;
				transform: scale(0.5);
			}
		</style>
	</head>
	<body>
		<div class="outer">
			<div class="inner">你好啊</div>
		</div>

		<span>我是10像素的字体</span>
	</body>
</html>
